-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core] Check that temp_dir must be absolute path. #36431
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test?
do you have a suggested place to place the test? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix! Can you add [Core]
prefix to the PR title? a process we follow so that release notes are easier to make
force-pushed because the test commit did not have signed-off-by. |
Signed-off-by: Ruiyang Wang <rywang014@gmail.com>
Signed-off-by: Ruiyang Wang <rywang014@gmail.com>
Signed-off-by: Ruiyang Wang <rywang014@gmail.com>
Signed-off-by: Ruiyang Wang <rywang014@gmail.com>
Looks like the test failures are not related to my change. @jjyao would you mind taking a look and merge? |
ray.init accepts a _temp_dir arg. The arg should be absolute path because it makes no sense to have a "relative path" on all nodes. However the code did not check that and proceeds as if it is absolute path. This makes the init code to hang and timeout. Example issues for treating it as absolute: the latest_session symlink links to the temp_dir and if it is relative path it won't work. Signed-off-by: Ruiyang Wang <rywang014@gmail.com> Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Why are these changes needed?
ray.init
accepts a_temp_dir
arg. The arg should be absolute path because it makes no sense to have a "relative path" on all nodes. However the code did not check that and proceeds as if it is absolute path. This makes the init code to hang and timeout.Example issues for treating it as absolute: the
latest_session
symlink links to the temp_dir and if it is relative path it won't work.Compatibility Analysis
The call
ray.init()
times out when the arg is relative path, so it never worked and now we forbid it. This won't break any existing usage.Related issue number
Closes #30650.
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.